// -----------------------------------------------------------------------------
// Generate By Furion Tools v2.2.6                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;

namespace Purchasing.Core
{
    public partial class UfSupplierEntry : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<UfSupplierEntry, MasterDbContextLocator>
    {
    
        public int Id { get; set; }
        public int? RequestId { get; set; }
        public int? Lrry { get; set; }
        public string Gysbm { get; set; }
        public string Gysmc { get; set; }
        public string Gyslxr { get; set; }
        public string Zcsjh { get; set; }
        public string RequestId1 { get; set; }
        public int? Formmodeid { get; set; }
        public int? Modedatacreater { get; set; }
        public int? Modedatacreatertype { get; set; }
        public string Modedatacreatedate { get; set; }
        public string Modedatacreatetime { get; set; }
        public string Modeuuid { get; set; }
        public string Dz { get; set; }
        public int? Nsrlx { get; set; }
        public int? Hzpl { get; set; }
        public int? Gysly { get; set; }
        public string Zyfw { get; set; }
        public string Gydq { get; set; }
        public string Rkrq { get; set; }
        public int? Gyspj { get; set; }
        public string Bz { get; set; }
        public string Fj { get; set; }
        public int? Lrdw { get; set; }
        public int? Lrbm { get; set; }
    
        public void Configure(EntityTypeBuilder<UfSupplierEntry> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.ToTable("uf_supplierEntry");

                entityBuilder.HasIndex(e => e.Formmodeid, "uf_formmodeid_1603348554331");

                entityBuilder.Property(e => e.Id).HasColumnName("id");

                entityBuilder.Property(e => e.Bz)
                    .HasMaxLength(50)
                    .IsUnicode(false)
                    .HasColumnName("bz");

                entityBuilder.Property(e => e.Dz)
                    .HasMaxLength(50)
                    .IsUnicode(false)
                    .HasColumnName("dz");

                entityBuilder.Property(e => e.Fj)
                    .HasColumnType("text")
                    .HasColumnName("fj");

                entityBuilder.Property(e => e.Formmodeid).HasColumnName("formmodeid");

                entityBuilder.Property(e => e.Gydq)
                    .HasMaxLength(50)
                    .IsUnicode(false)
                    .HasColumnName("gydq");

                entityBuilder.Property(e => e.Gysbm)
                    .HasMaxLength(20)
                    .IsUnicode(false)
                    .HasColumnName("gysbm");

                entityBuilder.Property(e => e.Gyslxr)
                    .HasMaxLength(20)
                    .IsUnicode(false)
                    .HasColumnName("gyslxr");

                entityBuilder.Property(e => e.Gysly).HasColumnName("gysly");

                entityBuilder.Property(e => e.Gysmc)
                    .HasMaxLength(50)
                    .IsUnicode(false)
                    .HasColumnName("gysmc");

                entityBuilder.Property(e => e.Gyspj).HasColumnName("gyspj");

                entityBuilder.Property(e => e.Hzpl).HasColumnName("hzpl");

                entityBuilder.Property(e => e.Lrbm).HasColumnName("lrbm");

                entityBuilder.Property(e => e.Lrdw).HasColumnName("lrdw");

                entityBuilder.Property(e => e.Lrry).HasColumnName("lrry");

                entityBuilder.Property(e => e.Modedatacreatedate)
                    .HasMaxLength(10)
                    .IsUnicode(false)
                    .HasColumnName("modedatacreatedate");

                entityBuilder.Property(e => e.Modedatacreater).HasColumnName("modedatacreater");

                entityBuilder.Property(e => e.Modedatacreatertype).HasColumnName("modedatacreatertype");

                entityBuilder.Property(e => e.Modedatacreatetime)
                    .HasMaxLength(8)
                    .IsUnicode(false)
                    .HasColumnName("modedatacreatetime");

                entityBuilder.Property(e => e.Modeuuid)
                    .HasMaxLength(100)
                    .IsUnicode(false)
                    .HasColumnName("MODEUUID");

                entityBuilder.Property(e => e.Nsrlx).HasColumnName("nsrlx");

                entityBuilder.Property(e => e.RequestId).HasColumnName("requestId");

                entityBuilder.Property(e => e.RequestId1)
                    .HasMaxLength(20)
                    .IsUnicode(false)
                    .HasColumnName("request_id");

                entityBuilder.Property(e => e.Rkrq)
                    .HasMaxLength(10)
                    .IsUnicode(false)
                    .HasColumnName("rkrq")
                    .IsFixedLength(true);

                entityBuilder.Property(e => e.Zcsjh)
                    .HasMaxLength(20)
                    .IsUnicode(false)
                    .HasColumnName("zcsjh");

                entityBuilder.Property(e => e.Zyfw)
                    .HasMaxLength(50)
                    .IsUnicode(false)
                    .HasColumnName("zyfw");
        }

    }
}
